export const length = (str)=>{
	let len = 0
	for(let i = 0;i<str.length;){
		len++
		const point = str.codePointAt(i)
		i += point >0xffff?2:1
	}
	return len
}